
import entity.User;
import service.UserService;
import service.UserServiceImpl;

import java.sql.SQLException;

public class test {
    public static void main(String[] args) throws SQLException {
        UserService userService = new UserServiceImpl();
        User user = new User();
        /*try {
            user = userService.login("admin", "admin");
            //System.out.println(user.toString());
        } catch (SQLException e) {
            e.printStackTrace();
        }
        if (user != null) {
            System.out.println("user");
        } else {
            System.out.println("hhs");
        }*/
        user = userService.getMessage("");
        System.out.println(user.getName());
    }
}
